package org.noip.giscard.biblio.action.autor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

public class ManterAutorAction extends DispatchAction {

/*	@Override
	public ActionForward execute(ActionMapping arg0, ActionForm arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws Exception {
		// TODO Auto-generated method stub
		
		AutorFormBean autorFormBean = (AutorFormBean) arg1;
		AutorTO autor = autorFormBean.getAutor();
//		autor.setCodigoAutor(new Integer(10));
//		autor.setNomeAutor("Nome do Autor");
//		autorFormBean.setAutor(autor);		
		
		if ( autor != null )
			Storage.getRepositorio().add(autor);
		
		return arg0.findForward("sucess");
	}
*/
	public ActionForward iniciarAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		
		ActionForward actionForward = mapping.findForward("input"); 
		
		return actionForward;
	}
}
